<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <title>订单确认</title>

</head>

<body>
  <header>测试电商 | 订单确认</header>
  <div class="main">
    <div class="main_content">
      <div class="content_title">
        <div class="content_data">
          <div>选择收货地址 <span style="font-size: 12px; margin-left: 20px">管理收货地址</span></div>
          <div class="Address">
            <div class="addressdata" id="addressdata">
              <div style="line-height: 40px;margin-left: 15px;">上海 上海市 （JCK 收）</div>
              <hr>
              <div style="font-size: 12px;margin: 10px 0 10px 20px">长宁区延安西路500号 <br>
                13878787878</div>
              <div class="addressbutton" id="addressbutton"><span
                  style="font-size: 12px;margin: 20px 10px 10px 20px">修改</span>
                <div class="selectlogo"><img id="selectlogo" src="img/Select.png" alt=""></div>
              </div>
            </div>
            <div class="adddata">
              添加新地址</div>

          </div>

        </div>
        <div class="content_cash">
          <div id="content_cash">
            <div style="font-size: 18px">商品清单 <span style="font-size: 12px; margin-left: 20px">返回购物车</span></div>
          </div>
          <div class="payform">
            支付方式：在线支付
            <div>
              <table>
                <tr>
                  <th>商品</th>
                  <th>数量</th>
                  <th>单价（元）</th>
                  <th>小计（元）</th>
                  <th>操作</th>
                </tr>
                <tr>
                  <td>德芙巧克力</td>
                  <td>1</td>
                  <td>63.00</td>
                  <td>63.00</td>
                  <td><span>删除</span></td>
                </tr>
              </table>
            </div>
            <div style="text-align: right">商品金额：¥ 63.00</div>
            <div style="text-align: right">运费：¥ 0.00</div>
            <div class="rightbox">应付总金额：<span>¥ 63.00</span>&ensp;&ensp;<input type="submit" value="登录到支付账户"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>
<script>
  $(".addressdata").click(function () {
    if ($("#selectlogo").css("display") == "none") {
      $("#selectlogo").css("display", "block");
    } else {
      $("#selectlogo").css("display", "none");
    }

  });

</script>
<style>
  * {
    padding: 0;
    margin: 0;
  }
  hr {
    width: 90%;
    margin: 0 auto;
  }
  li {
    list-style: none;
  }
  td {
    padding: 15px 0px;
  }
  a {
    text-decoration: none;
  }

  body {
    height: 100vh;
  }

  header {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main {
    min-height: 700px;
    min-width: 800px;
    height: 90vh;
    padding: 50px;
    background: #ececec;
    box-sizing: border-box;
  }

  .main_content {
    overflow: hidden;
    overflow-y: auto;
    width: 80vw;
    min-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 150px;
    height: 100%;
    box-sizing: border-box;
  }

  .Address {
    display: flex;
    flex-direction: row;
  }

  .addressdata {
    cursor: pointer;
    width: 22vw;
    height: 16vh;
    min-width: 250px;
    min-height: 150px;
    border: 2px dashed #61adfa;
    margin: 20px 0px;

  }

  .addressbutton {
    width: 100%;
    height: 50px;
    margin-top: 15px;
  }

  .adddata {
    cursor: pointer;
    width: 22vw;
    height: 16vh;
    min-width: 250px;
    min-height: 150px;
    border: 2px dashed #61adfa;
    margin: 20px;
    text-align: center;
    line-height: 150px;
    border: 2px dashed #29a576;
    color: #29a576;
  }

  .selectlogo img {
    width: 50px;
    height: 50px;
    display: none;
    float: right;
    margin-top: -23px;
  }

  .content_title {
    padding: 20px 0px;
    width: 600px;
    margin: 0 auto;
    height: 100%;
    box-sizing: border-box;
  }

  .content_data {
    width: 100%;
    height: 40%;
    min-height: 250px;
    font-size: 18px;
    /* font-weight: bold; */
  }

  span {
    color: #29a576;
    cursor: pointer;
  }

  .content_cash {
    width: 100%;
    height: 60%;

  }

  .payform {
    margin: 0 auto;
    line-height: 50px;
  }

  table tr th,
  table tr td {
    border: 1px solid #000000;
  }

  table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
  }

  .rightbox {
    float: right;
    width: 100%;
    text-align: right;
  }

  .rightbox input {
    width: 115px;
    height: 35px;
    border-radius: 5px;
    background-color: #29a576;
    color: #fff;
    border: 0px;
    cursor: pointer;
  }

</style>
